from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *

from ui.Ui_log_widget import Ui_widget_log



class Log_widget(QWidget):

    def __init__(self, parent=None):
        super(Log_widget, self).__init__(parent)
        self.ui = Ui_widget_log()
        self.ui.setupUi(self)
        self.setWindowFlags(Qt.WindowCloseButtonHint)  # 设置窗体仅显示关闭按钮


    def append_log(self,log:str):
        self.ui.textEdit_log_show.append(log)